// @ts-ignore
/* eslint-disable */
import request from '@/utils/httpInstance';

/** 此处后端没有提供注释 POST /service/user/check-access-signature */
export async function checkAccessSignature(body: API.CheckAccessSignatureRequest, options?: { [key: string]: any }) {
  return request<API.SimpleRpcResponseBoolean>('/service/user/check-access-signature', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /service/user/get-user-by-access-key */
export async function getInvoker(body: API.RetrieveInvokerRequest, options?: { [key: string]: any }) {
  return request<API.User>('/service/user/get-user-by-access-key', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
